<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/12/7
  Time: 16:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<%--
<script type="text/javascript" src="jquery-2.1.3.min.js"></script>
<script>
    $(function () {

        $("#name").blur(function () {
            $.ajax({
                type : "POST",
                url : "yanreg",
                data : {
                    "username" :$("#name").val()
                },
                success : function(data) {
                    if(data.flag==1){
                alert("用户名已存在！")
            }
                }
            });
        })
    })
</script>
--%>
<body>
<center><h3>欢迎新人注册</h3></center>
<form action="reg.action">
    请输入用户名：<input type="text" id="name" name="username"></br>
    请输入密码：<input type="password" name="password"></br>
    <input type="submit"value="注册">
</form>
</body>
</html>
